import React, { FC } from "react";
import { useNavigate } from "react-router-dom";
import { Button, Result } from "antd";
import { MANAGE_PATH_LIST } from "../../router";

const NotFound: FC = () => {
  const nav = useNavigate();
  return (
    <Result
      status="404"
      title="404"
      subTitle="抱歉，网页好像没有找到诶（?_?）."
      extra={
        <Button
          type="primary"
          size="large"
          onClick={() => nav(MANAGE_PATH_LIST)}
        >
          返回主页
        </Button>
      }
    />
  );
};
export default NotFound;
